//报价
const prefixUrl = '/web/offerFlow'
import request from '@/utils/request'

//保存到草稿箱
export function save(data,params) {
  return request({
    url: prefixUrl + '/save',
    method: 'post',
    data: data,
    content_type: 'json',
    params
  })
}

//保存并开启流程
export function saveTmp(data, params) {
  return request({
    url: prefixUrl + '/saveTmp',
    method: 'post',
    data: data,
    content_type: 'json',
    params
  })
}

//审核方法
export function check(params) {
  return request({
    url: prefixUrl + '/check',
    method: 'post',
    params
  })
}

//审核列表
export function page(params) {
  return request({
    url: prefixUrl + '/page',
    method: 'get',
    params
  })
}

//获取审核详细信息
export function getOne(params) {
  return request({
    url: prefixUrl + '/getOne',
    method: 'get',
    params
  })
}

//获取待审核的个数
export function getCount(params) {
  return request({
    url: prefixUrl + '/getCount',
    method: 'get',
    params
  })
}

//根据ID获取详细信息
export function getInfoById(params) {
  return request({
    url: prefixUrl + '/getInfoById',
    method: 'get',
    params
  })
}
//删除流程
export function remove(params) {
  return request({
    url: prefixUrl + '/remove',
    method: 'post',
    params
  })
}
//彻底删除流程
export function actualDelete(params) {
  return request({
    url: prefixUrl + '/actualDelete',
    method: 'post',
    params
  })
}





